<?php


namespace app\zhongcan\validate;


use think\Validate;

class NavValidate extends Validate
{
    protected $rule = [
        'title' => 'require',
        'url' => 'require',
    ];
    protected $message = [
        'title.require' => '导航菜单不能为空',
        'url.require' => '跳转链接不能为空'
    ];
    protected $scene = [
        'add' => ['url','title'],
        'edit' =>['title','url'],
    ];

}